package com.msb.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.msb.mall.common.utils.PageUtils;
import com.msb.mall.product.entity.CategoryEntity;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author leon
 * @email chenleimsg@gmail.com
 * @date 2022-10-06 19:53:30
 */
public interface CategoryService extends IService<CategoryEntity> {

    Long[] findCatelogPath(Long catelogId);

    List<Long> findParentPath(Long catelogId, List<Long> paths);

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> queryPageWithTree(Map<String, Object> params);

    void delByIds(List<Long> asList);

    void updateByDetail(CategoryEntity category);
}

